#include "GameOject.h"


CGameOject::CGameOject()
{
}


CGameOject::~CGameOject()
{
	int i = 0;

	if (spriteVector_.size() != 0)
	{
		while (i < spriteVector_.size())
		{
			if (spriteVector_[i] != NULL)
			{
				delete spriteVector_[i];
				spriteVector_.pop_back();
			}
			i++;
		}
	}

	if (soundVector_.size() != 0)
	{
		i = 0;

		while (i < soundVector_.size())
		{
			if (soundVector_[i] != NULL)
			{
				delete soundVector_[i];
				spriteVector_.pop_back();
			}
			i++;
		}
	}
}
